package com.ruoyi.project.ledger.mapper;

import java.util.List;
import com.ruoyi.project.ledger.domain.LedgerBusinessAccount;
import org.apache.ibatis.annotations.Param;

/**
 * 经营户台账Mapper接口
 * 
 * @author ruoyi
 * @date 2020-05-08
 */
public interface LedgerBusinessAccountMapper 
{
    /**
     * 查询经营户台账
     * 
     * @param id 经营户台账ID
     * @return 经营户台账
     */
    public LedgerBusinessAccount selectLedgerBusinessAccountById(Long id);

    /**
     * 查询经营户台账列表
     * 
     * @param ledgerBusinessAccount 经营户台账
     * @return 经营户台账集合
     */
    public List<LedgerBusinessAccount> selectLedgerBusinessAccountList(LedgerBusinessAccount ledgerBusinessAccount);

    /**
     * 新增经营户台账
     * 
     * @param ledgerBusinessAccount 经营户台账
     * @return 结果
     */
    public int insertLedgerBusinessAccount(LedgerBusinessAccount ledgerBusinessAccount);

    /**
     * 修改经营户台账
     * 
     * @param ledgerBusinessAccount 经营户台账
     * @return 结果
     */
    public int updateLedgerBusinessAccount(LedgerBusinessAccount ledgerBusinessAccount);

    /**
     * 删除经营户台账
     * 
     * @param id 经营户台账ID
     * @return 结果
     */
    public int deleteLedgerBusinessAccountById(Long id);

    /**
     * 批量删除经营户台账
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteLedgerBusinessAccountByIds(Long[] ids);

    public LedgerBusinessAccount selectLedgerBusinessAccountByBusinessLicenseNo(String businessLicenseNo,@Param("stationId") Long stationId);

    public LedgerBusinessAccount selectLedgerBusinessAccount(@Param("companyName") String companyName, @Param("businessLicenseNo") String businessLicenseNo,@Param("stationId") Long stationId);

    public LedgerBusinessAccount selectLedgerBusinessAccountByBeforeCompanyName(@Param("beforeCompanyName") String beforeCompanyName,@Param("stationId") Long stationId);

}
